package org.september.pisces.task.entity;

import java.util.Date;

import org.september.smartdao.anno.AutoIncrease;
import org.september.smartdao.anno.Entity;
import org.september.smartdao.anno.Id;
import org.springframework.format.annotation.DateTimeFormat;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;


@Entity
@Table("simple_task_running_log")
public class TaskRunningLog {

	@Id
    @AutoIncrease
    @IsKey
    @IsAutoIncrement
    @Column(name = "id", length = 20)
	private Long id;
	
   @Column(name = "task_id")
   private Long taskId;

   @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   @Column(name = "execute_time", type = MySqlTypeConstant.DATETIME)
   private Date executeTime;
   
   @Column(name = "result")
   private String result;

public Long getId() {
	return id;
}

public void setId(Long id) {
	this.id = id;
}

public Long getTaskId() {
	return taskId;
}

public void setTaskId(Long taskId) {
	this.taskId = taskId;
}

public Date getExecuteTime() {
	return executeTime;
}

public void setExecuteTime(Date executeTime) {
	this.executeTime = executeTime;
}

public String getResult() {
	return result;
}

public void setResult(String result) {
	this.result = result;
}
  
}
